package com.yunshipei.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class RuntimeInfo implements Serializable {
    @SerializedName("runtimeVersion")
    private String runtimeVersion;
    @SerializedName("primaryVersion")
    private String primaryVersion;
    @SerializedName("scope")
    private String scope;
    @SerializedName("isSpecificVersion")
    private boolean isSpecificVersion;

    public RuntimeInfo(String runtimeVersion, String primaryVersion, String scope, boolean isSpecificVersion) {
        this.runtimeVersion = runtimeVersion;
        this.primaryVersion = primaryVersion;
        this.scope = scope;
        this.isSpecificVersion = isSpecificVersion;
    }

    public void setRuntimeVersion(String runtimeVersion) {
        this.runtimeVersion = runtimeVersion;
    }

    public void setPrimaryVersion(String primaryVersion) {
        this.primaryVersion = primaryVersion;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public void setIsSpecificVersion(boolean isSpecificVersion) {
        this.isSpecificVersion = isSpecificVersion;
    }

    public String getRuntimeVersion() {
        return runtimeVersion;
    }

    public String getPrimaryVersion() {
        return primaryVersion;
    }

    public String getScope() {
        return scope;
    }


    public boolean isSpecificVersion() {
        return isSpecificVersion;
    }

    @Override
    public String toString() {
        return "runtimeInfo:" + runtimeVersion + ",primaryVersion:" + primaryVersion + ",scope:" + scope + ",isSpecificVersion:" + isSpecificVersion;
    }
}
